package com.nantong.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import com.nantong.common.mybatis.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 销售订单表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_sales_order")
public class SalesOrder extends BaseEntity {

    /**
     * 销售订单ID
     */
    @TableId(value = "sales_order_id", type = IdType.AUTO)
    private Long salesOrderId;

    /**
     * 销售单号
     */
    private String salesOrderNo;

    /**
     * 销售人员ID
     */
    private Long salespersonId;

    /**
     * 客户ID
     */
    private Long customerId;

    /**
     * 销售额
     */
    private BigDecimal salesAmount;

    /**
     * 状态(1:完结 2:退款)
     */
    private Integer status;

}

